import React, { Component }  from 'react'

import Store from './Store'
import Cart from './Cart'
import My from './My'

export default class Box extends Component {
  render() {
    const { current } = this.props;
    return (current === 2 ? <My /> :
        current === 1 ? <Cart /> :
        <Store />)
  }
}
